#import "SSLocalizationInfo.h"
@implementation SSLocalizationInfo
+ (NSString *)country {
    @try {
        NSLocale *locale = [NSLocale currentLocale];
        NSString *country = [locale localeIdentifier];
        if (country == nil || country.length <= 0) {
            return nil;
        }
        return country;
    }
    @catch (NSException *exception) {
        return nil;
    }
}
+ (NSString *)language {
    @try {
        NSArray *languageArray = [NSLocale preferredLanguages];
        NSString *language = [languageArray objectAtIndex:0];
        if (language == nil || language.length <= 0) {
            return nil;
        }
        return language;
    }
    @catch (NSException *exception) {
        return nil;
    }
}
+ (NSString *)timeZone {
    @try {
        NSTimeZone *localTime = [NSTimeZone systemTimeZone];
        NSString *timeZone = [localTime name];
        if (timeZone == nil || timeZone.length <= 0) {
            return nil;
        }
        return timeZone;
    }
    @catch (NSException *exception) {
        return nil;
    }
}
+ (NSString *)currency {
    @try {
        NSString *currency = [[NSLocale currentLocale] objectForKey:NSLocaleCurrencySymbol];
        if (currency == nil || currency.length <= 0) {
            return nil;
        }
        return currency;
    }
    @catch (NSException *exception) {
        return nil;
    }
}
@end
